public async Task ChangePrefixOwner([Summary("Prefix to change to")] string prefix) { await ReplyAsync($"Prefix in this Guild was changed to `{prefix}`"); handler.UpdateDict(Context.Guild.Id, prefix); handler.SaveDatabase(); }
public async Task ChangePrefix([Summary("Prefix to change to")] string prefix) { if (!((SocketGuildUser)Context.User).GuildPermissions.Has(GuildPermission.Administrator)) { await ReplyAsync(":no_entry_sign: You don't have permission to set the perfix! You need Administrator permissions!"); return; } await ReplyAsync($"Prefix in this Guild was changed to `{prefix}`"); handler.UpdateDict(Context.Guild.Id, prefix); handler.SaveDatabase(); }