Add comment command

This commit is contained in:
Dustin Pianalto
2021-02-23 21:56:10 -09:00
parent 01573b1dff
commit d80fe268d7
3 changed files with 119 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
package discord_utils
import "github.com/dustinpianalto/disgoman"
func GetChannelName(ctx disgoman.Context, id string) (string, error) {
channel, err := ctx.Session.Channel(id)
if err != nil {
return "", err
}
return channel.Name, nil
}