You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description=f"**Please slow down** - You can use this command again in {f'{round(hours)} hours'ifround(hours) >0else''}{f'{round(minutes)} minutes'ifround(minutes) >0else''}{f'{round(seconds)} seconds'ifround(seconds) >0else''}.",
the @checks.not_blacklisted() check in your command, or you can raise the error by yourself.
221
231
"""
222
232
embed=discord.Embed(
223
-
description="You are blacklisted from using the bot!",
224
-
color=0xE02B2B
233
+
description="You are blacklisted from using the bot!", color=0xE02B2B
225
234
)
226
235
awaitcontext.send(embed=embed)
227
236
ifcontext.guild:
228
-
bot.logger.warning(f"{context.author} (ID: {context.author.id}) tried to execute a command in the guild {context.guild.name} (ID: {context.guild.id}), but the user is blacklisted from using the bot.")
237
+
bot.logger.warning(
238
+
f"{context.author} (ID: {context.author.id}) tried to execute a command in the guild {context.guild.name} (ID: {context.guild.id}), but the user is blacklisted from using the bot."
239
+
)
229
240
else:
230
-
bot.logger.warning(f"{context.author} (ID: {context.author.id}) tried to execute a command in the bot's DMs, but the user is blacklisted from using the bot.")
241
+
bot.logger.warning(
242
+
f"{context.author} (ID: {context.author.id}) tried to execute a command in the bot's DMs, but the user is blacklisted from using the bot."
243
+
)
231
244
elifisinstance(error, exceptions.UserNotOwner):
232
245
"""
233
246
Same as above, just for the @checks.is_owner() check.
234
247
"""
235
248
embed=discord.Embed(
236
-
description="You are not the owner of the bot!",
237
-
color=0xE02B2B
249
+
description="You are not the owner of the bot!", color=0xE02B2B
238
250
)
239
251
awaitcontext.send(embed=embed)
240
252
ifcontext.guild:
241
253
bot.logger.warning(
242
-
f"{context.author} (ID: {context.author.id}) tried to execute an owner only command in the guild {context.guild.name} (ID: {context.guild.id}), but the user is not an owner of the bot.")
254
+
f"{context.author} (ID: {context.author.id}) tried to execute an owner only command in the guild {context.guild.name} (ID: {context.guild.id}), but the user is not an owner of the bot."
255
+
)
243
256
else:
244
257
bot.logger.warning(
245
-
f"{context.author} (ID: {context.author.id}) tried to execute an owner only command in the bot's DMs, but the user is not an owner of the bot.")
258
+
f"{context.author} (ID: {context.author.id}) tried to execute an owner only command in the bot's DMs, but the user is not an owner of the bot."
# This will prevent your bot from stopping everything when doing a web request - see: https://discordpy.readthedocs.io/en/stable/faq.html#how-do-i-make-a-web-request
0 commit comments