Skip to content

Commit

Permalink
Updated after months
Browse files Browse the repository at this point in the history
  • Loading branch information
LilbabxJJ-1 committed Dec 20, 2024
1 parent fb71cea commit 2461563
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CharmCord/functions/Messages/addDropdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
async def addDropdown(args, ctx):
from CharmCord.tools import check_args_check, check_args, find_bracket_pairs, no_arguments, lets, is_valid
try:
placeHolder, custom_id = args.split(";")
placeHolder, custom_id, minimum, maximum = args.split(";")

except:
raise SyntaxError("$addDropdown needs a placeholder and custom_id")
Expand Down Expand Up @@ -42,7 +42,7 @@ async def drop_go(drop_interaction):
if len(lets) >= 1:
lets.clear()

select = discord.ui.Select(placeholder=placeHolder, options=dropdown_options, custom_id=custom_id)
select = discord.ui.Select(placeholder=placeHolder, options=dropdown_options, custom_id=custom_id, min_values=minimum, max_values=maximum)
select.callback = drop_go

if len(views) == 0:
Expand Down
3 changes: 1 addition & 2 deletions CharmCord/utils/CharmCord.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import asyncio
import json
import discord
from discord.ext import commands
Expand Down Expand Up @@ -226,7 +225,7 @@ async def on_ready():
def charmclient(
prefix: str,
case_insensitive: bool = False,
intents: tuple = ("default",),
intents: str | list = "Default",
activity: discord.Activity = None,
load_command_dir="commands",
):
Expand Down

0 comments on commit 2461563

Please sign in to comment.