我正在编写一个 Discord 机器人,它使用以下代码来检测和处理用户消息:
bot.on('message', function (user, userID, channelID, message, evt) {
//Message handling and response code goes here
});
Run Code Online (Sandbox Code Playgroud)
我想添加一个只有在发送它的用户具有管理员权限时才有效的命令。有没有办法做到这一点?
我正在使用Python制作一个程序,我希望在中心使用一组按钮.如何使用pack()创建按钮中心?
tkinter ×2
bots ×1
centering ×1
discord ×1
discord.io ×1
javascript ×1
node.js ×1
python ×1
python-3.x ×1