Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion bot/exts/info/information.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,11 @@ async def create_user_embed(self, ctx: Context, user: FetchedMember) -> Embed:
badges.append(emoji)

if on_server:
joined = discord_timestamp(user.joined_at, TimestampFormats.RELATIVE)
if user.joined_at:
joined = discord_timestamp(user.joined_at, TimestampFormats.RELATIVE)
else:
joined = "Unable to get join date"

# The 0 is for excluding the default @everyone role,
# and the -1 is for reversing the order of the roles to highest to lowest in hierarchy.
roles = ", ".join(role.mention for role in user.roles[:0:-1])
Expand Down