Skip to content

Commit fcb21aa

Browse files
committed
BUGFIX:
- Channel ID -1 should not be checked.
1 parent 797ce5e commit fcb21aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

services/bot/dcsserverbot.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ def check_roles(self, roles: Iterable[str | int]):
127127
self.log.error(f" => Role {role} not found in your Discord!")
128128

129129
def check_channel(self, channel_id: int) -> bool:
130+
if channel_id == -1:
131+
return True
130132
channel = self.get_channel(channel_id)
131133
if not channel:
132134
self.log.error(f'No channel with ID {channel_id} found!')

0 commit comments

Comments
 (0)