-
I'll be sending messages only from my account from time to time. I'm joined in like 30 servers and the whole caching thing takes a lot of memory and time. Is there any way I tell the bot to not cache anything and just read the texts it gets after logging in? A demo text (which I'm not using but resembles what I want to do): async def on_message(self, message):
if message.channel == channel_id and text in message.content:
await message.delete()
await message.channel.send("You are not allowed to use this word here") Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
dolfies
Oct 27, 2021
Replies: 1 comment 1 reply
-
You can disable the message cache, and add The guild/channel/role/dm cache isn't disableable. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
pptx704
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can disable the message cache, and add
guild_subscription_options=GuildSubscriptionOptions.off()
to your client initialization.The guild/channel/role/dm cache isn't disableable.