问题描述
我想用python3做一个discord Bot。
我想在#welcome
频道中添加一条消息,并通过PM
向新用户添加一条消息。
我没有收到任何错误,但该漫游器未发送任何消息。
这是我的代码:
#welcome message
@client.event
async def on_member_join(member):
channel = discord.utils.get(member.guild.channels,name='willkommen')
await channel.send(f"Hallo auf dem Server")
await message.author.send(f"Hallo auf dem Server")
以下是进口:
import discord
import random
import asyncio
import logging
from discord.ext import commands
有人知道如何解决此问题? 谢谢!! :)
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)