mirror of https://gitlab.com/litecord/litecord.git
lazy_guild: remove member properly
This commit is contained in:
parent
e35af92cb9
commit
a1ca74f960
|
|
@ -67,7 +67,7 @@ async def remove_member(guild_id: int, member_id: int):
|
||||||
for state in states:
|
for state in states:
|
||||||
await app.dispatcher.channel.unsub(channel_id, state.session_id)
|
await app.dispatcher.channel.unsub(channel_id, state.session_id)
|
||||||
|
|
||||||
await app.lazy_guild.remove_member(guild_id, user["id"])
|
await app.lazy_guild.remove_member(guild_id, int(user["id"]))
|
||||||
await app.dispatcher.guild.dispatch(
|
await app.dispatcher.guild.dispatch(
|
||||||
guild_id,
|
guild_id,
|
||||||
(
|
(
|
||||||
|
|
|
||||||
|
|
@ -958,7 +958,7 @@ class GuildMemberList:
|
||||||
old_idx = self._get_item_index(user_id)
|
old_idx = self._get_item_index(user_id)
|
||||||
|
|
||||||
# for now, remove any of the users' subscribed states
|
# for now, remove any of the users' subscribed states
|
||||||
state_keys = self.state.keys()
|
state_keys = tuple(self.state.keys())
|
||||||
|
|
||||||
for session_id in state_keys:
|
for session_id in state_keys:
|
||||||
state = self._get_state(session_id)
|
state = self._get_state(session_id)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue