1
Fork 0
mirror of https://github.com/Steffo99/nortrom.git synced 2024-11-25 19:04:18 +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 # TODO: restrict intents
bot = dec.Bot(command_prefix="!", intents=d.Intents.default()) bot = dec.Bot(command_prefix="!", intents=d.Intents(guilds=True, members=True, voice_states=True))
sbot = ds.SlashCommand(client=bot, sync_commands=False) sbot = ds.SlashCommand(client=bot, sync_commands=True)
@sbot.slash(name="mute", description="Mute all members in the voice channel you're in.") @sbot.slash(name="mute", description="Mute all members in the voice channel you're in.")