ソースを参照

added a check so custom commands ignore pms.

tags/v1.3.0
roxie 6年前
コミット
26e9293a5c
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      cogs/customcommands.py

+ 1
- 1
cogs/customcommands.py ファイルの表示

@@ -19,7 +19,7 @@ class CustomCommands():
self.servers = self.con.servers

async def on_message(self, message):
if blacklisted(message.author):
if blacklisted(message.author) or message.channel.type == discord.ChannelType.private:
return
msg = message.content.lower()
channel = message.channel

読み込み中…
キャンセル
保存