Added intents

This commit is contained in:
Mikey
2020-11-19 09:14:50 -05:00
committed by GitHub
parent 6889ad613d
commit 6d74389042
+2 -1
View File
@@ -4,7 +4,8 @@
# import all necessary commands and libraries
import discord
import asyncio
client=discord.Client()
intents = discord.Intents(members=True)
client=discord.Client(intents=intents)
welcomechannel = await client.fetch_channel(channel_id) #https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID
# Make sure you get the ID of your channel by right-clicking it and clicking `Copy ID`. Make sure developer mode is on!
@client.event