Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Commit

Permalink
Fixed permissions bug | v1.0.4-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
CrawlTheDev committed Jun 5, 2021
1 parent bff8d5d commit e41d6e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/admin/change-prefix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default class ChangePrefixCommand implements ICommand {
name = 'change-prefix';

async execute(ctx: CommandContext, prefix: string): Promise<void> {
if (ctx.guild.me.hasPermission('ADMINISTRATOR')) {
if (ctx.member.hasPermission('ADMINISTRATOR')) {
const guild = await ctx.database.findGuildById(ctx.guild.id);

if (guild) {
Expand Down

0 comments on commit e41d6e1

Please sign in to comment.