1
Fork 0
mirror of https://github.com/Steffo99/nortrom.git synced 2024-11-22 01:14:21 +00:00

🔧 Change bot initialization

This commit is contained in:
Steffo 2021-03-27 00:02:36 +01:00
parent b5900a91cd
commit ee8799c3cc
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -9,8 +9,8 @@ logging.basicConfig(level="DEBUG")
# TODO: restrict intents
bot = dec.Bot(command_prefix="!", intents=d.Intents.default())
sbot = ds.SlashCommand(client=bot, sync_commands=False)
bot = dec.Bot(command_prefix="!", intents=d.Intents(guilds=True, members=True, voice_states=True))
sbot = ds.SlashCommand(client=bot, sync_commands=True)
@sbot.slash(name="mute", description="Mute all members in the voice channel you're in.")