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