Add validation against 'everyone' role

This commit is contained in:
Noikoio 2019-05-27 22:45:05 -07:00
parent 757ba7476e
commit 7623fd5e0b

View file

@ -80,6 +80,8 @@ Friend Class ManagerCommands
If role Is Nothing Then If role Is Nothing Then
Await reqChannel.SendMessageAsync(RoleInputError) 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 Else
SyncLock Instance.KnownGuilds SyncLock Instance.KnownGuilds
Instance.KnownGuilds(guild.Id).UpdateRoleAsync(role.Id).Wait() Instance.KnownGuilds(guild.Id).UpdateRoleAsync(role.Id).Wait()