Add comment command
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user