mirror of
https://github.com/NoiTheCat/BirthdayBot.git
synced 2024-11-21 21:54:36 +00:00
Add validation against 'everyone' role
This commit is contained in:
parent
757ba7476e
commit
7623fd5e0b
1 changed files with 2 additions and 0 deletions
|
@ -80,6 +80,8 @@ Friend Class ManagerCommands
|
|||
|
||||
If role Is Nothing Then
|
||||
Await reqChannel.SendMessageAsync(RoleInputError)
|
||||
ElseIf role.Id = reqChannel.Guild.EveryoneRole.Id Then
|
||||
Await reqChannel.SendMessageAsync(":x: You cannot set that as the birthday role.")
|
||||
Else
|
||||
SyncLock Instance.KnownGuilds
|
||||
Instance.KnownGuilds(guild.Id).UpdateRoleAsync(role.Id).Wait()
|
||||
|
|
Loading…
Reference in a new issue