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:
parent
b5900a91cd
commit
ee8799c3cc
1 changed files with 2 additions and 2 deletions
|
@ -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.")
|
||||||
|
|
Loading…
Reference in a new issue