fix(tempvoice): update temporary channel creation message to use channel mention
This commit is contained in:
@@ -10,8 +10,8 @@ msgstr ""
|
|||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
|
||||||
msgid "{mention} your temporary channel was created: **{channel_name}**."
|
msgid "{mention} your temporary channel was created: {channel_mention}."
|
||||||
msgstr "{mention} utworzono Twój kanał tymczasowy: **{channel_name}**."
|
msgstr "{mention} utworzono Twój kanał tymczasowy: {channel_mention}."
|
||||||
|
|
||||||
msgid "TempVoice is not fully configured for this server. An administrator should set the start channel and target category with `tempvoice setstart` and `tempvoice setcategory`."
|
msgid "TempVoice is not fully configured for this server. An administrator should set the start channel and target category with `tempvoice setstart` and `tempvoice setcategory`."
|
||||||
msgstr "TempVoice nie jest w pełni skonfigurowany dla tego serwera. Administrator powinien ustawić kanał startowy i kategorię docelową komendami `tempvoice setstart` oraz `tempvoice setcategory`."
|
msgstr "TempVoice nie jest w pełni skonfigurowany dla tego serwera. Administrator powinien ustawić kanał startowy i kategorię docelową komendami `tempvoice setstart` oraz `tempvoice setcategory`."
|
||||||
|
|||||||
@@ -378,8 +378,8 @@ class TempVoice(commands.Cog):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
async def _send_creation_message(self, member: discord.Member, voice_channel: discord.VoiceChannel) -> None:
|
async def _send_creation_message(self, member: discord.Member, voice_channel: discord.VoiceChannel) -> None:
|
||||||
content = _("{mention} your temporary channel was created: **{channel_name}**.").format(
|
content = _("{mention} your temporary channel was created: {channel_mention}.").format(
|
||||||
mention=member.mention, channel_name=voice_channel.name
|
mention=member.mention, channel_mention=voice_channel.mention
|
||||||
)
|
)
|
||||||
await self._send_guild_message(member.guild, content, preferred_channel=voice_channel)
|
await self._send_guild_message(member.guild, content, preferred_channel=voice_channel)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user