fix (session): Stop sending view=None.
This commit is contained in:
@@ -208,6 +208,9 @@ class ScheduledSession:
|
|||||||
@log_wrap(action='Lobby Send')
|
@log_wrap(action='Lobby Send')
|
||||||
async def send(self, *args, wait=True, **kwargs):
|
async def send(self, *args, wait=True, **kwargs):
|
||||||
lobby_hook = await self.get_lobby_hook()
|
lobby_hook = await self.get_lobby_hook()
|
||||||
|
if 'view' in kwargs and kwargs['view'] is None:
|
||||||
|
kwargs.pop('view', None)
|
||||||
|
|
||||||
if lobby_hook:
|
if lobby_hook:
|
||||||
try:
|
try:
|
||||||
return await lobby_hook.send(*args, wait=wait, **kwargs)
|
return await lobby_hook.send(*args, wait=wait, **kwargs)
|
||||||
|
|||||||
Reference in New Issue
Block a user