Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Making Discordia bots receive only DM related events and no text channel events or any other useless event. Useful for DM only Lua Discord bots on Discordia.
- Edit Shard.lua in Discordia and add these two lines:
- guild_subscriptions = false,
- intents = 2^12+2^13,
- Like this:
- return self:_send(IDENTIFY, {
- token = client._token,
- properties = {
- ['$os'] = jit.os,
- ['$browser'] = 'Discordia',
- ['$device'] = 'Discordia',
- ['$referrer'] = '',
- ['$referring_domain'] = '',
- },
- compress = options.compress,
- guild_subscriptions = false,
- intents = 2^12+2^13,
- large_threshold = options.largeThreshold,
- shard = {self._id, client._total_shard_count},
- presence = next(client._presence) and client._presence,
- }, true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement