mirror of
https://github.com/jcreek/discord.py-welcome-bot.git
synced 2026-07-15 11:53:42 +00:00
Added intents
This commit is contained in:
+2
-1
@@ -4,7 +4,8 @@
|
|||||||
# import all necessary commands and libraries
|
# import all necessary commands and libraries
|
||||||
import discord
|
import discord
|
||||||
import asyncio
|
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
|
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!
|
# 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
|
@client.event
|
||||||
|
|||||||
Reference in New Issue
Block a user