mirror of
https://github.com/UiO-Gaming/mustafa.git
synced 2026-11-05 13:56:48 +01:00
switch to v3 of holiday API
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -208,7 +208,7 @@ class Misc(commands.Cog):
|
||||
land = land.upper()
|
||||
år = datetime.now().year if not år else int(år)
|
||||
|
||||
data = requests.get(f"https://date.nager.at/api/v2/publicholidays/{år}/{land}", timeout=10)
|
||||
data = requests.get(f"https://date.nager.at/api/v3/publicholidays/{år}/{land}", timeout=10)
|
||||
if data.status_code != 200:
|
||||
embed = embed_templates.error_warning("Ugyldig land\nHusk å bruke landskoder\n" + "For eksempel: `NO`")
|
||||
return await interaction.response.send_message(embed=embed)
|
||||
|
||||
Reference in new issue
Block a user