a
This commit is contained in:
parent
0d500319c8
commit
5714b0ddfd
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ async def say_message(userid:int, guildid:int, shortname:str, message:str,channe
|
||||||
webhook = None
|
webhook = None
|
||||||
# print("ok2")
|
# print("ok2")
|
||||||
print(channel.guild)
|
print(channel.guild)
|
||||||
if channel.guild is None:
|
if channel.guild is None or bot.user.id not in [m.id for m in channel.guild.members] or not channel.permissions_for(channel.guild.me).manage_webhooks:
|
||||||
await interaction_res.send_message(f"**{full_name}({short_name})**: {message}")
|
await interaction_res.send_message(f"**{full_name}({short_name})**: {message}")
|
||||||
return
|
return
|
||||||
if discord.utils.get(await channel.webhooks(),name=short_name) is None:
|
if discord.utils.get(await channel.webhooks(),name=short_name) is None:
|
||||||
|
|
Loading…
Reference in a new issue