merge remote
This commit is contained in:
commit
a3ca41255a
@ -177,9 +177,10 @@ class LoggingCog(commands.Cog):
|
||||
|
||||
def set_footer(self, text: str) -> None:
|
||||
"""Replace the footer text while preserving the timestamp."""
|
||||
timestamp = discord.utils.format_dt(datetime.datetime.utcnow(), style="f")
|
||||
timestamp = discord.utils.format_dt(
|
||||
datetime.datetime.utcnow(), style="f"
|
||||
)
|
||||
self.footer_display.content = f"{timestamp} | {text}"
|
||||
|
||||
def _user_display(self, user: Union[discord.Member, discord.User]) -> str:
|
||||
"""Return display name, username and ID string for a user."""
|
||||
display = user.display_name if isinstance(user, discord.Member) else user.name
|
||||
|
Loading…
x
Reference in New Issue
Block a user