Skip to content

Commit d24501b

Browse files
committed
Use the ID attribute of DM Channel.
Originally used the channel instance by mistake, causing the `__str__` to be used instead of the intended ID.
1 parent baa7e5f commit d24501b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/thread.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def _format_info_embed(self, user, log_url, log_count, color):
301301
# embed.add_field(name='Registered', value=created + days(created))
302302

303303
if user.dm_channel:
304-
footer = f"User ID: {user.id} • DM ID: {user.dm_channel}"
304+
footer = f"User ID: {user.id} • DM ID: {user.dm_channel.id}"
305305
else:
306306
footer = f"User ID: {user.id}"
307307

0 commit comments

Comments
 (0)