support into master #371

Merged
edraft merged 46 commits from support into master 2023-09-27 20:46:54 +02:00
2 changed files with 8 additions and 2 deletions
Showing only changes of commit f72ea68f66 - Show all commits

View File

@ -39,7 +39,10 @@ class UserJoinedVoiceChannel(TableABC):
@property
@ServiceProviderABC.inject
def channel_name(self, bot: DiscordBotServiceABC) -> str:
return bot.get_channel(self.channel_id).name
channel = bot.get_channel(self.channel_id)
if channel is None:
return ""
return channel.name
@property
def user(self) -> User:

View File

@ -41,7 +41,10 @@ class UserJoinedVoiceChannelHistory(HistoryTableABC):
@property
@ServiceProviderABC.inject
def channel_name(self, bot: DiscordBotServiceABC) -> str:
return bot.get_channel(self.channel_id).name
channel = bot.get_channel(self.channel_id)
if channel is None:
return ""
return channel.name
@property
def user(self) -> int: