@@ -40,24 +40,27 @@ await ctx.FollowupAsync(new DiscordFollowupMessageBuilder()
4040
4141 var embed = new DiscordEmbedBuilder
4242 {
43- Title = invite . Guild . VanityUrlCode is null
44- ? $ "Invite Info for { invite . Guild . Name } "
45- : $ "Invite info for { invite . Guild . Name } \n (discord.gg/{ invite . Guild . VanityUrlCode } )",
46- //Title = $"Invite Info for {invite.Guild.Name}",
43+ Title = $ "Invite Info for { invite . Guild . Name } ",
4744 Description = invite . Guild . Description ,
4845 Color = Setup . Constants . BotColor
4946 } ;
5047
51- if ( invite . Guild . VanityUrlCode is null || invite . Code ! = invite . Guild . VanityUrlCode )
48+ if ( invite . Guild . VanityUrlCode is not null && invite . Code = = invite . Guild . VanityUrlCode )
5249 {
50+ embed . AddField ( "Expires At" , "This is a vanity invite. It never expires." ) ;
51+ }
52+ else
53+ {
54+ embed . AddField ( "This server has a vanity invite!" , $ "discord.gg/{ invite . Guild . VanityUrlCode } ") ;
55+
5356 embed . AddField ( "Inviter" ,
5457 invite . Inviter is null
5558 ? "unknown"
5659 : $ "{ invite . Inviter . GetFullUsername ( ) } (`{ invite . Inviter . Id } `)") ;
5760
58- embed . AddField ( "Expires At" ,
61+ embed . AddField ( "Invite expires At" ,
5962 invite . ExpiresAt is null
60- ? "Invite does not expire."
63+ ? "This invite does not expire."
6164 : $ "<t:{ invite . ExpiresAt . Value . ToUnixTimeSeconds ( ) } :F> (<t:{ invite . ExpiresAt . Value . ToUnixTimeSeconds ( ) } :R>)") ;
6265 }
6366
0 commit comments