mirror of
https://github.com/kurbezz/discord-bot.git
synced 2025-12-06 15:15:37 +01:00
Fix
This commit is contained in:
@@ -111,7 +111,7 @@ async def create_discord_event(event: CreateDiscordEvent):
|
||||
async with AsyncClient() as client:
|
||||
response = await client.post(
|
||||
f"https://discord.com/api/v10/guilds/{config.DISCORD_GUILD_ID}/scheduled-events",
|
||||
json=event.model_dump(),
|
||||
data=event.model_dump_json(),
|
||||
headers={"Authorization": f"Bot {config.DISCORD_BOT_TOKEN}"}
|
||||
)
|
||||
|
||||
@@ -131,7 +131,7 @@ async def edit_discord_event(event_id: str, event: UpdateDiscordEvent):
|
||||
async with AsyncClient() as client:
|
||||
response = await client.patch(
|
||||
f"https://discord.com/api/v10/guilds/{config.DISCORD_GUILD_ID}/scheduled-events/{event_id}",
|
||||
json=event.model_dump(),
|
||||
data=event.model_dump_json(),
|
||||
headers={"Authorization": f"Bot {config.DISCORD_BOT_TOKEN}"}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user