You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I currently use DiscordSocketClient which is being handled in each pod in my k8s cluster.
I am applying manual sharding by processing the interaction command only if it's the correct pod based on a sharding formula.
However, I'd like to switch to using DiscordShardedClient instead so I don't need to do this manual sharding by myself but i could not find any example which applies sharding correctly in .NET.
This is how I implemented but it didn't work, the interactions were received by all of the DiscordShardClient instances in multiple pods:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I currently use DiscordSocketClient which is being handled in each pod in my k8s cluster.
I am applying manual sharding by processing the interaction command only if it's the correct pod based on a sharding formula.
However, I'd like to switch to using DiscordShardedClient instead so I don't need to do this manual sharding by myself but i could not find any example which applies sharding correctly in .NET.
This is how I implemented but it didn't work, the interactions were received by all of the DiscordShardClient instances in multiple pods:
Is there anything else I need to set? Maybe some config?
Beta Was this translation helpful? Give feedback.
All reactions