Fix issues
This commit is contained in:
parent
8b001e499a
commit
00db797d65
3
main.go
3
main.go
@ -241,12 +241,15 @@ var (
|
||||
}
|
||||
|
||||
for _, roleID := range config.Discord.AdminRoles {
|
||||
if roleID != "" {
|
||||
err := client.ChannelPermissionSet(channel.ID, roleID, discordgo.PermissionOverwriteTypeRole, discordgo.PermissionViewChannel|discordgo.PermissionSendMessages, 0)
|
||||
if err != nil {
|
||||
log.Printf("Error setting permissions for role %s: %v", roleID, err)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
err = client.InteractionRespond(i.Interaction, &discordgo.InteractionResponse{
|
||||
Type: discordgo.InteractionResponseChannelMessageWithSource,
|
||||
Data: &discordgo.InteractionResponseData{
|
||||
|
Loading…
Reference in New Issue
Block a user