discgov

package module
v0.0.0-...-133c67d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2020 License: MIT Imports: 2 Imported by: 2

README

discgov

What is this?

it's a library that will track number of users in voice channels for your discord bots

How to use this?

TBA

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUsers

func GetUsers(guildID, channelID string) []string

GetUsers Returns a list of users in a channel

func SetTrackBots

func SetTrackBots(val bool)

SetTrackBots sets if bots should be tracked in channels

func UserVoiceTrackerHandler

func UserVoiceTrackerHandler(s *discordgo.Session, v *discordgo.VoiceStateUpdate)

UserVoiceTrackerHandler this is the handler which must be added as a handler to discrodgo it will update the Staes whenever a user moves between channels

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL