From 6d743890427dd60ddd369f5d2c23ad92af03979e Mon Sep 17 00:00:00 2001 From: Mikey Date: Thu, 19 Nov 2020 09:14:50 -0500 Subject: [PATCH] Added intents --- welcome-bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/welcome-bot.py b/welcome-bot.py index 49d1ac8..617309e 100644 --- a/welcome-bot.py +++ b/welcome-bot.py @@ -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