-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Alias add improvements #3343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: development
Are you sure you want to change the base?
Alias add improvements #3343
Conversation
martinbndr
commented
Jun 9, 2024
- Fixes an issue with error message being incorrect.
- Protects eval command for being added into an alias if the user does not have permissions to it as Owner level etc. as the command is quite dangerous and should not be added by normal moderators (Could be used to nuke server for example).
- Fixes an issue with error message being incorrect. - Protects eval command for being added into an alias if the user does not have permissions to it as Owner level etc. as the command is quite dangerous and should not be added by normal moderators (Could be used to nuke server for example).
StephenDaDev
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
sebkuip
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's an issue that you forgot to check causing errors.
| embed = utils.create_not_found_embed(name, self.bot.aliases.keys(), "Alias") | ||
| return await ctx.send(embed=embed) | ||
|
|
||
| embed = await self.make_alias(name, value, "Edited") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This call to make_alias does not have the new ctx arg which would break editing aliases
Ih damn yea seems I forgot that, will fix it in next few days when I have time. |
Needs changes. Will re-review after changes are made.