.xprewsreset now has correct permissions

This commit is contained in:
Kwoth
2021-12-01 05:39:27 +01:00
parent 8499e1da70
commit 71f1e43272
2 changed files with 6 additions and 1 deletions

View File

@@ -2,12 +2,15 @@
Experimental changelog. Mostly based on [keepachangelog](https://keepachangelog.com/en/1.0.0/) except date format. a-c-f-r-o Experimental changelog. Mostly based on [keepachangelog](https://keepachangelog.com/en/1.0.0/) except date format. a-c-f-r-o
## Unreleased ## [3.0.10] - 01.12.2021
### Changed ### Changed
- `.warn` now supports weighted warnings - `.warn` now supports weighted warnings
- `.warnlog` will now show current amount and total amount of warnings - `.warnlog` will now show current amount and total amount of warnings
### Fixed
- `.xprewsreset` now has correct permissions
### Removed ### Removed
- Removed slot.numbers from `images.yml` as they're no longer used - Removed slot.numbers from `images.yml` as they're no longer used

View File

@@ -39,6 +39,8 @@ namespace NadekoBot.Modules.Xp
} }
[NadekoCommand, Aliases] [NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
[RequireUserPermission(GuildPermission.Administrator)]
public async Task XpRewsReset() public async Task XpRewsReset()
{ {
var reply = await PromptUserConfirmAsync(_eb.Create() var reply = await PromptUserConfirmAsync(_eb.Create()