Delete Message Instantly
https://github.com/skyra-project/skyra/blob/main/src/lib/util/functions/messages.ts
does the
deleteMessageImmediately
function in the file above actually delete the message instantly? Faster than doing <Message>.delete()
?GitHub
skyra/src/lib/util/functions/messages.ts at main · skyra-project/sk...
A multipurpose Discord Bot designed to carry out most of your server's needs with great performance and stability. - skyra-project/skyra
6 Replies
Solution
it still calls
message.delete
but doesnt throw an error on error codes.does that somehow make message deletion faster?
no
ok
In fact the function only exists for the
deleteMessage
function which in turn only exists for DELAYED deletes
(you can find this out by doing some simple code searches for the function usages)alright