Geeksbot/internal/discord_utils/channel_utils.go
Dustin Pianalto 0bf31a3e5d
Some checks are pending
CI / build (push) Waiting to run
Add view command and update utils
2021-02-23 23:29:19 -09:00

12 lines
226 B
Go

package discord_utils
import "github.com/dustinpianalto/disgoman"
func GetChannelName(ctx disgoman.Context, id string) string {
channel, err := ctx.Session.Channel(id)
if err != nil {
return ""
}
return channel.Name
}