diff --git a/autoroom/control_panel.py b/autoroom/control_panel.py index 50a96da..1cafbc3 100644 --- a/autoroom/control_panel.py +++ b/autoroom/control_panel.py @@ -206,7 +206,12 @@ class ControlPanel: return # Get the associated text channel - text_channel = autoroom.guild.get_channel(autoroom.id) + text_channel = None + for channel in autoroom.guild.text_channels: + if channel.name == autoroom.name: + text_channel = channel + break + if not text_channel: return @@ -230,4 +235,4 @@ class ControlPanel: # Send the embed to the text channel message = await text_channel.send(embed=embed, view=view) # Store the message ID for reference - await self.config.channel(autoroom).control_panel_message_id.set(message.id) \ No newline at end of file + await self.config.channel(autoroom).message_id.set(message.id) \ No newline at end of file