Fix typo
This commit is contained in:
parent
05d44e19aa
commit
d1691e2377
1 changed files with 2 additions and 2 deletions
|
@ -165,7 +165,7 @@ public class CloseCommand
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
DiscordUser staffMember = await SupportChild.client.GetUserAsync(ticket.creatorID);
|
DiscordUser ticketCreator = await SupportChild.client.GetUserAsync(ticket.creatorID);
|
||||||
await using FileStream file = new(filePath, FileMode.Open, FileAccess.Read);
|
await using FileStream file = new(filePath, FileMode.Open, FileAccess.Read);
|
||||||
|
|
||||||
DiscordMessageBuilder message = new();
|
DiscordMessageBuilder message = new();
|
||||||
|
@ -198,7 +198,7 @@ public class CloseCommand
|
||||||
|
|
||||||
message.AddFiles(new Dictionary<string, Stream> { { fileName, file } });
|
message.AddFiles(new Dictionary<string, Stream> { { fileName, file } });
|
||||||
|
|
||||||
await staffMember.SendMessageAsync(message);
|
await ticketCreator.SendMessageAsync(message);
|
||||||
}
|
}
|
||||||
catch (NotFoundException) { /* ignore */ }
|
catch (NotFoundException) { /* ignore */ }
|
||||||
catch (UnauthorizedException) { /* ignore */ }
|
catch (UnauthorizedException) { /* ignore */ }
|
||||||
|
|
Loading…
Add table
Reference in a new issue