mirror of
https://github.com/jcreek/discord.py-welcome-bot.git
synced 2026-07-13 02:43:43 +00:00
Added intents
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user