Fix sending staff messages
This commit is contained in:
parent
2ca528e211
commit
0a9420d156
@ -152,6 +152,10 @@ class FjerkroaBot(commands.Bot):
|
|||||||
if response.staff is None:
|
if response.staff is None:
|
||||||
response.staff = f"User {message.user} try to hack the AI."
|
response.staff = f"User {message.user} try to hack the AI."
|
||||||
|
|
||||||
|
if response.staff is not None and self.staff_channel is not None:
|
||||||
|
async with self.staff_channel.typing():
|
||||||
|
await self.staff_channel.send(response.staff, suppress_embeds=True)
|
||||||
|
|
||||||
# Get the answer channel based on the requested response channel
|
# Get the answer channel based on the requested response channel
|
||||||
answer_channel = self.channel_by_name(response.channel, channel)
|
answer_channel = self.channel_by_name(response.channel, channel)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user