Skip to content

Commit b5e4fba

Browse files
committed
IIRR_13: Fix channel creation when setting up a channel for a server that didn't have a system channel
1 parent 95e0a68 commit b5e4fba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/lib/discord/events/set_channel.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def listen_to_channel_select
6060
existing_channel.update!(name: channel.name, channel_id: channel.id)
6161
else
6262
# If the channel doesn't exist, create a new one associated with the server
63-
server.channel.create!(name: channel.name, channel_id: channel.id)
63+
server.create_channel!(name: channel.name, channel_id: channel.id)
6464
end
6565

6666
# Respond with a confirmation message

0 commit comments

Comments
 (0)