Made a couple of improvements to /guess
This commit is contained in:
@@ -110,7 +110,7 @@ class PycordBot(LibPycordBot):
|
||||
)
|
||||
|
||||
# TODO Make a nice message
|
||||
await self._notify_admins(
|
||||
await self.notify_admins(
|
||||
guild,
|
||||
pycord_guild,
|
||||
f"Event **{event.name}** has started! Users have gotten their channels and can already start submitting their answers.",
|
||||
@@ -150,7 +150,7 @@ class PycordBot(LibPycordBot):
|
||||
await user.lock_event_channel(guild, event._id, channel=user_channel)
|
||||
|
||||
# TODO Make a nice message
|
||||
await self._notify_admins(
|
||||
await self.notify_admins(
|
||||
guild,
|
||||
pycord_guild,
|
||||
f"Event **{event.name}** has ended! Users can no longer submit their answers.",
|
||||
@@ -177,8 +177,9 @@ class PycordBot(LibPycordBot):
|
||||
async def _get_event_stages(self, event: PycordEvent) -> List[PycordEventStage]:
|
||||
return [(await self.find_event_stage(stage_id)) for stage_id in event.stage_ids]
|
||||
|
||||
# TODO Add documentation
|
||||
@staticmethod
|
||||
async def _notify_admins(guild: Guild, pycord_guild: PycordGuild, message: str) -> None:
|
||||
async def notify_admins(guild: Guild, pycord_guild: PycordGuild, message: str) -> None:
|
||||
management_channel: TextChannel | None = guild.get_channel(pycord_guild.channel_id)
|
||||
|
||||
if management_channel is None:
|
||||
|
Reference in New Issue
Block a user