Skip to content

Commit 2461563

Browse files
committed
Updated after months
1 parent fb71cea commit 2461563

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

CharmCord/functions/Messages/addDropdown.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
async def addDropdown(args, ctx):
77
from CharmCord.tools import check_args_check, check_args, find_bracket_pairs, no_arguments, lets, is_valid
88
try:
9-
placeHolder, custom_id = args.split(";")
9+
placeHolder, custom_id, minimum, maximum = args.split(";")
1010

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

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

4848
if len(views) == 0:

CharmCord/utils/CharmCord.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import asyncio
21
import json
32
import discord
43
from discord.ext import commands
@@ -226,7 +225,7 @@ async def on_ready():
226225
def charmclient(
227226
prefix: str,
228227
case_insensitive: bool = False,
229-
intents: tuple = ("default",),
228+
intents: str | list = "Default",
230229
activity: discord.Activity = None,
231230
load_command_dir="commands",
232231
):

0 commit comments

Comments
 (0)