mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 02:16:09 -05:00
[CustomCom] add Query typehint for URI-based CCs (#3228)
* [cc] add Query typehint for URI query ccs * Create 3228.enhance.rst
This commit is contained in:
@@ -4,6 +4,7 @@ from datetime import datetime, timedelta
|
||||
from inspect import Parameter
|
||||
from collections import OrderedDict
|
||||
from typing import Mapping, Tuple, Dict, Set
|
||||
from urllib.parse import quote_plus
|
||||
|
||||
import discord
|
||||
|
||||
@@ -521,6 +522,7 @@ class CustomCommands(commands.Cog):
|
||||
"set": set,
|
||||
"str": str,
|
||||
"tuple": tuple,
|
||||
"query": quote_plus,
|
||||
}
|
||||
indices = [int(a[0]) for a in args]
|
||||
low = min(indices)
|
||||
|
||||
Reference in New Issue
Block a user