如何使漫游器忽略discord.py中的某些频道?

时间:2019-04-15 02:45:12

标签: python-3.x discord discord.py

我正在尝试创建一个机器人,当成员说出某些关键字时将其重定向到某个频道,但是我不希望该机器人告诉他们如果已经在#commands中使用它们。如何让漫游器忽略#commands中的所有消息?

1 个答案:

答案 0 :(得分:2)

如果const shallowCopy = Object.assign({}, this.state.user); shallowCopy.basic[event.target.name] = event.target.value this.setState({user : shallowCopy}); 等于#commands的ID,则只需在on_message事件中添加一个检查以返回。

message.channel.id
相关问题