Skip to content

Commit 79b1a67

Browse files
Fix giveaway thread creation
1 parent 5563099 commit 79b1a67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Events/MessageEvent.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public static async Task MessageHandlerAsync(DiscordClient client, DiscordMessag
129129
// handle #giveaways
130130
if (!isAnEdit && message.Author.Id == Program.cfgjson.GiveawayBot && message.Channel.Id == Program.cfgjson.GiveawaysChannel && message.Content == Program.cfgjson.GiveawayTriggerMessage)
131131
{
132-
string giveawayTitle = message.Embeds[0].Author.Name;
132+
string giveawayTitle = message.Embeds[0].Title;
133133

134134
if (giveawayTitle.Length > 100)
135135
{

0 commit comments

Comments
 (0)