forked from cswimr/SeaCogs
fix(pterodactyl): use display_name and not name
This commit is contained in:
parent
5a4dc4866c
commit
f792ad58a0
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ class Pterodactyl(commands.Cog):
|
||||||
channel = self.bot.get_channel(await self.config.console_channel())
|
channel = self.bot.get_channel(await self.config.console_channel())
|
||||||
if channel:
|
if channel:
|
||||||
await channel.send(f"Received chat message from {message.author.id}: {message.content[:1900]}")
|
await channel.send(f"Received chat message from {message.author.id}: {message.content[:1900]}")
|
||||||
msg = json.dumps({"event": "send command", "args": [self.get_tellraw_string(message.author.name, message.content, message.author.color)]})
|
msg = json.dumps({"event": "send command", "args": [self.get_tellraw_string(message.author.display_name, message.content, message.author.color)]})
|
||||||
self.logger.debug("Sending chat message to server:\n%s", msg)
|
self.logger.debug("Sending chat message to server:\n%s", msg)
|
||||||
await self.websocket.send(msg)
|
await self.websocket.send(msg)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue