Add broadcast command
CI / build (push) Has been cancelled

This commit is contained in:
Dustin Pianalto
2021-02-24 17:18:52 -09:00
parent b8ca9506c9
commit fe2e28357a
3 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ func broadcastCommandFunc(ctx disgoman.Context, args []string) {
if !discord_utils.IsGuildAdmin(ctx, author) && !discord_utils.IsGuildMod(ctx, author) {
return
}
message := strings.Join(args[1:len(args)-1], " ")
message := strings.Join(args[1:len(args)], " ")
if strings.ToLower(args[0]) == "all" {
servers, err := services.ServerService.GuildServers(guild)
if err != nil {