Skip to content

Commit

Permalink
Fix voicechannel object has no attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
ltzmax committed Jan 21, 2024
1 parent 24bce5b commit c2ab924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autopublisher/autopublisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ async def on_message_without_command(self, message: discord.Message) -> None:
f"AutoPublisher has been disabled in {message.guild} due to News Channel feature is not enabled."
)
return
if not message.channel.is_news():
if isinstance(message.channel, TextChannel) and not message.channel.is_news():
return
if message.channel.is_news():
try:
Expand Down

0 comments on commit c2ab924

Please sign in to comment.