[Activity] Update some messages
This commit is contained in:
@@ -85,7 +85,7 @@ public class ActivityFormatter
|
|||||||
InterstellarActivity interstellar =>
|
InterstellarActivity interstellar =>
|
||||||
$"{FormatActivityName(activity.Name)} {_interstellarFormatter.FormatInterstellarColor(interstellar.Color)} ({players.Count}/{activity.MaxPlayers})",
|
$"{FormatActivityName(activity.Name)} {_interstellarFormatter.FormatInterstellarColor(interstellar.Color)} ({players.Count}/{activity.MaxPlayers})",
|
||||||
OrganizedActivity =>
|
OrganizedActivity =>
|
||||||
$"{(ActivityHelper.IsEventActivity(activity.Type) ? "Organisation d'évènement" : "Proposition d'aide")} ({participants.Length}/{activity.MaxPlayers})",
|
$"{(ActivityHelper.IsEventActivity(activity.Type) ? "Organisation d'évènement" : $"Proposition d'aide - {FormatActivityName(activity.Name)}")} ({participants.Length}/{activity.MaxPlayers})",
|
||||||
_ =>
|
_ =>
|
||||||
$"{FormatActivityName(activity.Name)} ({participants.Length}/{activity.MaxPlayers})"
|
$"{FormatActivityName(activity.Name)} ({participants.Length}/{activity.MaxPlayers})"
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -532,7 +532,7 @@ public partial class ActivityModule : InteractionModuleBase<SocketInteractionCon
|
|||||||
embed: EmbedUtils
|
embed: EmbedUtils
|
||||||
.ErrorEmbed(self
|
.ErrorEmbed(self
|
||||||
? "Vous êtes **déjà inscrit** à cette activité"
|
? "Vous êtes **déjà inscrit** à cette activité"
|
||||||
: $"{user.DisplayName} est **déjà inscrit** à cette activité").Build()
|
: $"{MentionUtils.MentionUser(user.Id)} est **déjà inscrit** à cette activité").Build()
|
||||||
);
|
);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
@@ -582,7 +582,7 @@ public partial class ActivityModule : InteractionModuleBase<SocketInteractionCon
|
|||||||
|
|
||||||
await thread.AddUserAsync(user);
|
await thread.AddUserAsync(user);
|
||||||
|
|
||||||
string embedContent = $"**{user.DisplayName}** a été **ajouté** à l'activité";
|
string embedContent = $"{MentionUtils.MentionUser(user.Id)} a été **ajouté** à l'activité";
|
||||||
if (self)
|
if (self)
|
||||||
{
|
{
|
||||||
await thread.SendMessageAsync(
|
await thread.SendMessageAsync(
|
||||||
@@ -610,7 +610,7 @@ public partial class ActivityModule : InteractionModuleBase<SocketInteractionCon
|
|||||||
embed: EmbedUtils
|
embed: EmbedUtils
|
||||||
.ErrorEmbed(self
|
.ErrorEmbed(self
|
||||||
? "Vous n'êtes **pas inscrit** à cette activité"
|
? "Vous n'êtes **pas inscrit** à cette activité"
|
||||||
: $"{user.DisplayName} n'est **pas inscrit** à cette activité").Build()
|
: $"{MentionUtils.MentionUser(user.Id)} n'est **pas inscrit** à cette activité").Build()
|
||||||
);
|
);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
@@ -629,7 +629,7 @@ public partial class ActivityModule : InteractionModuleBase<SocketInteractionCon
|
|||||||
|
|
||||||
await thread.RemoveUserAsync(user);
|
await thread.RemoveUserAsync(user);
|
||||||
|
|
||||||
string embedContent = $"{user.DisplayName} a été **enlevé** de l'activité";
|
string embedContent = $"{MentionUtils.MentionUser(user.Id)} a été **enlevé** de l'activité";
|
||||||
if (self)
|
if (self)
|
||||||
{
|
{
|
||||||
await thread.SendMessageAsync(
|
await thread.SendMessageAsync(
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
{
|
{
|
||||||
"ActivityOptions": {
|
"ActivityOptions": {
|
||||||
|
"OrganizerRoleId": 0,
|
||||||
|
"OrganizerEmote": "",
|
||||||
|
|
||||||
"HelperRoleId": 0,
|
"HelperRoleId": 0,
|
||||||
"HelperEmote": "",
|
"HelperEmote": "",
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user