mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
Don't allow to warn other bots (#3855)
This commit is contained in:
parent
fb26ecf577
commit
38a034e59b
@ -323,6 +323,9 @@ class Warnings(commands.Cog):
|
||||
if user == ctx.author:
|
||||
await ctx.send(_("You cannot warn yourself."))
|
||||
return
|
||||
if user.bot:
|
||||
await ctx.send(_("You cannot warn other bots."))
|
||||
return
|
||||
custom_allowed = await self.config.guild(ctx.guild).allow_custom_reasons()
|
||||
guild_settings = self.config.guild(ctx.guild)
|
||||
reason_type = None
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user