Skip to content

Commit c74bc21

Browse files
author
karel26
committed
Uploads are only allowed in admin channels
1 parent 5b4a938 commit c74bc21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/utils/discord.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1554,7 +1554,7 @@ async def get_server(message: discord.Message) -> Optional[Server]:
15541554
from services.servicebus import ServiceBus
15551555

15561556
bot = ServiceRegistry.get(BotService).bot
1557-
server = bot.get_server(message)
1557+
server = bot.get_server(message, admin_only=True)
15581558
if not server and message.channel.id == bot.locals.get('channels', {}).get('admin'):
15591559
bus = ServiceRegistry.get(ServiceBus)
15601560
ctx = await bot.get_context(message)

0 commit comments

Comments
 (0)