Skip to content

Commit

Permalink
RoleArgument: Support <@& and <@!
Browse files Browse the repository at this point in the history
I'm not too sure whats the difference here but it could be some
discord client version difference
  • Loading branch information
networkException committed May 13, 2021
1 parent 623ce23 commit ed4eae3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arguments/roleArgument.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export class RoleArgument extends SnowflakeBasedArgument {
if (!input)
throw CommandError.syntax('RoleArgument', 'No input provided');

const { plain } = this.snowflake('RoleArgument', '@&', input);
const { plain } = this.snowflake('RoleArgument', '@[&|!]', input);

return await message.guild.roles.fetch(plain);
}
Expand Down

0 comments on commit ed4eae3

Please sign in to comment.