Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &commands.YAGCommand{ CmdCategory: commands.CategoryDebug, HideFromCommandsPage: true, Name: "dcallvoice", Description: "Disconnects from all the voice channels the bot is in", HideFromHelp: true, RunFunc: util.RequireBotAdmin(func(data *dcmd.Data) (interface{}, error) { vcs := make([]*discordgo.VoiceState, 0) guilds := bot.State.GuildsSlice(true) for _, g := range guilds { vc := g.VoiceState(true, common.BotUser.ID) if vc != nil { vcs = append(vcs, vc) go bot.ShardManager.SessionForGuild(g.ID).GatewayManager.ChannelVoiceLeave(g.ID) } } return fmt.Sprintf("Leaving %d voice channels...", len(vcs)), nil }), }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.