The entry in the result is no longer the member itself, it's an id....so get the member based on the id
This commit is contained in:
parent
b64eedba6b
commit
2788083257
|
@ -127,7 +127,8 @@ AND
|
||||||
# A list of the id's that will get updated
|
# A list of the id's that will get updated
|
||||||
for bd in bds:
|
for bd in bds:
|
||||||
try:
|
try:
|
||||||
await channel.send(f"It is {bd['member'].mention}'s birthday today! "
|
member = channel.get.get_member(bd["id"])
|
||||||
|
await channel.send(f"It is {member.mention}'s birthday today! "
|
||||||
"Wish them a happy birthday! \N{SHORTCAKE}")
|
"Wish them a happy birthday! \N{SHORTCAKE}")
|
||||||
except (discord.Forbidden, discord.HTTPException):
|
except (discord.Forbidden, discord.HTTPException):
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in a new issue