no more union
This commit is contained in:
parent
4b12cd129e
commit
10cd13ac5a
@ -1,7 +1,7 @@
|
|||||||
import os
|
import os
|
||||||
import math
|
import math
|
||||||
|
|
||||||
from typing import Union
|
# from typing import Union
|
||||||
|
|
||||||
import discord
|
import discord
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
@ -712,14 +712,13 @@ class Fight:
|
|||||||
return outlist
|
return outlist
|
||||||
|
|
||||||
# async def _getsettings(self, ctx: commands.Context):
|
# async def _getsettings(self, ctx: commands.Context):
|
||||||
return self.the_data[guildID]["SETTINGS"]
|
# # return self.the_data[guildID]["SETTINGS"]
|
||||||
# return await self.config.guild(ctx.guild).settings()
|
# return await self.config.guild(ctx.guild).settings()
|
||||||
|
|
||||||
# async def _get_message_from_id_old(self, channelid, messageid):
|
# async def _get_message_from_id_old(self, channelid, messageid):
|
||||||
# return await self.bot.get_message(self._get_channel_from_id(channelid), messageid)
|
# return await self.bot.get_message(self._get_channel_from_id(channelid), messageid)
|
||||||
|
|
||||||
async def _get_message_from_id(self, ctx: commands.Context, message_id: int)\
|
async def _get_message_from_id(self, ctx: commands.Context, message_id: int):
|
||||||
-> Union[discord.Message, None]:
|
|
||||||
"""
|
"""
|
||||||
Tries to find a message by ID in the current guild context.
|
Tries to find a message by ID in the current guild context.
|
||||||
:param ctx:
|
:param ctx:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user