Add ._temp_cached_users attribute to ContactView. This is to prevent unecessary repeated responses when same user spamming the button.
Others:
No longer deal with Thread.wait_until_ready() since we already sent the confirmation before starting to create thread anyways. So now we just check if the thread exists. If exists, we just send error response and return.
Fix UnknownInteraction error when check fails. To reproduce (in order):
Create contact menu (if there isn't one)
confirm_thread_creation set to True
DM the bot, leave the confirmation message untouched
Changelog
Fix potential ratelimits issue:
Interaction.followup
uses global ratelimits and not per interaction, we have changed it to useInteraction.response
instead.._temp_cached_users
attribute toContactView
. This is to prevent unecessary repeated responses when same user spamming the button.Others:
Thread.wait_until_ready()
since we already sent the confirmation before starting to create thread anyways. So now we just check if the thread exists. If exists, we just send error response and return.UnknownInteraction
error when check fails. To reproduce (in order):confirm_thread_creation
set toTrue
ContactManager.create
to.create_thread
.