1- from datetime import datetime
21from typing import Optional
32
43import discord
@@ -54,7 +53,7 @@ async def _tag(self, ctx: commands.Context, trigger: str):
5453 """Manage tags and aliases."""
5554 tag , alias = await self .config .get_tag_or_alias (ctx , trigger )
5655
57- time = int (datetime .utcnow ().timestamp ())
56+ time = int (discord . utils .utcnow ().timestamp ())
5857
5958 if tag is None and alias is None :
6059 await ctx .send ("That's not a valid tag or alias!" )
@@ -162,7 +161,9 @@ async def _claim(self, ctx: commands.Context, trigger: str):
162161 f"wants to transfer it to you."
163162 )
164163 else :
165- await self .config .transfer_tag (ctx , trigger , ctx .author .id , "Claim" , int (datetime .utcnow ().timestamp ()))
164+ await self .config .transfer_tag (
165+ ctx , trigger , ctx .author .id , "Claim" , int (discord .utils .utcnow ().timestamp ())
166+ )
166167 await ctx .send ("Tag successfully claimed!" )
167168 else :
168169 await ctx .send ("Sorry, that isn't a valid tag so you can't claim it. Good news! You can create it!" )
@@ -182,7 +183,7 @@ async def _transfer(self, ctx: commands.Context, trigger: str, member: discord.M
182183 reason = f"Mod-initiated by { ctx .author .mention } "
183184 if allowable :
184185 await self .config .transfer_tag (
185- ctx , trigger , member .id , f"Transfer: { reason } " , int (datetime .utcnow ().timestamp ())
186+ ctx , trigger , member .id , f"Transfer: { reason } " , int (discord . utils .utcnow ().timestamp ())
186187 )
187188 await ctx .send ("Tag successfully transferred!" )
188189 else :
@@ -253,7 +254,7 @@ async def _alias_create(self, ctx: commands.Context, alias: str, tag: str):
253254 await ctx .send ("You can't alias to another alias! That gets messy." )
254255 return
255256
256- await self .config .create_alias (ctx , alias , tag , ctx .author .id , int (datetime .utcnow ().timestamp ()))
257+ await self .config .create_alias (ctx , alias , tag , ctx .author .id , int (discord . utils .utcnow ().timestamp ()))
257258 await ctx .send ("Alias created!" )
258259
259260 @_alias .command ("delete" )
0 commit comments