diff options
| author | Nathan Perry <avaglir@gmail.com> | 2017-07-29 18:02:10 -0400 |
|---|---|---|
| committer | Nathan Perry <avaglir@gmail.com> | 2017-07-29 18:02:10 -0400 |
| commit | 9bd93434fbefc56ac6c154c569e064cc7e5f956d (patch) | |
| tree | f1aee399f1fc0ecd3d61c64654c83b1bbbcd8fb4 /util.go | |
| parent | deac22dffb03829216138d90e74423384b4c2c80 (diff) | |
working on adding playback commandsgo
Diffstat (limited to 'util.go')
| -rw-r--r-- | util.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -31,7 +31,7 @@ type Config struct { Trigger string `json:"trigger"` QueueSize uint `json:"queue_size"` AdminID uint `json:"admin_id"` - OpRole string `json:"op_role"` + OpRoleID uint `json:"op_role_id"` GuildID uint `json:"guild_id"` VoiceChannelID uint `json:"voice_channel_id"` Token string `json:"token"` @@ -51,6 +51,10 @@ func (c *Config) AdminStr() string { return strconv.Itoa(int(c.AdminID)) } +func (c *Config) OpRoleStr() string { + return strconv.Itoa(int(c.OpRoleID)) +} + func handle(err error) { if err != nil { log.Fatal(err) |
