Skip to content

Embeded Error Messages #665

Answered by modernNeo
chanchantang asked this question in Q&A
Oct 20, 2024 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

Oh my apologies I miswrote, I meant it uses followup right after defer, ie defer() -> followup().

Are you referring to this bit here?

try:
await interaction.response.defer()
except discord.errors.NotFound:
await interaction.channel.send(
"Feeling a bit overloaded at the moment...Please try again in a few minutes"
)
return
if purge_window_days <= 0 or purge_window_days > 14:
e_obj = await embed(
self.logger, interaction=interaction, title=f'{Ban.embed_title} Invalid Purge Specified',
description=f'Window to purge message must be between 1 - 14 days instead of {purge_w…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@chanchantang
Comment options

chanchantang Oct 20, 2024
Collaborator Author

@modernNeo
Comment options

@chanchantang
Comment options

chanchantang Oct 21, 2024
Collaborator Author

@modernNeo
Comment options

Answer selected by chanchantang
@chanchantang
Comment options

chanchantang Oct 21, 2024
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants