From 10cd13ac5aafd3be3bc62a8bed65a5c44014529b Mon Sep 17 00:00:00 2001 From: Bobloy Date: Mon, 27 Nov 2017 16:31:20 -0500 Subject: [PATCH] no more union --- fight/fight.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fight/fight.py b/fight/fight.py index cd42905..724607e 100644 --- a/fight/fight.py +++ b/fight/fight.py @@ -1,7 +1,7 @@ import os import math -from typing import Union +# from typing import Union import discord from discord.ext import commands @@ -712,14 +712,13 @@ class Fight: return outlist # 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() # async def _get_message_from_id_old(self, 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)\ - -> Union[discord.Message, None]: + async def _get_message_from_id(self, ctx: commands.Context, message_id: int): """ Tries to find a message by ID in the current guild context. :param ctx: