#MessageDeleted Event

1 messages · Page 1 of 1 (latest)

coral cairn
#

Why is the message value always null for me?
And when I delete a message, it throws an exception

acoustic dirge
#

Cacheable

#

first of all

#

you have to check first if it has a value

#

then

#

the only way to get contents of a deleted message - cache it

#

dnet has a built in cache impl

#

but you need to enable it in DiscordSocketConfig

#

iirc it's done by setting MessageCacheSize

#

but note that it will only cache messages sent after the bot came online