【发布时间】:2021-10-15 19:46:24
【问题描述】:
import discord
from discord.ext import commands
bot = discord.Bot(command_prefix='!')
@bot.event
@commands.has_permissions(administrator=False)
async def delmessage(message):
await message.delete()
【问题讨论】:
-
在服务器频道的设置中禁用@所有人和@这里权限,并且只为管理员和模组启用它
标签: discord.py