Skip to content

Commit 358e60d

Browse files
Update PortalCommandHandler.cs
1 parent 5b7593e commit 358e60d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CommandHandlers/PortalCommandHandler.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ public class PortalCommandHandler(BotDbContext dbContext,
1313
[Command("teleport")]
1414
[Alias("portal", "tp")]
1515
[Summary("Opens a portal from current rxChannel to provided rxChannel")]
16-
public async Task HandleTeleport(SocketGuildChannel rxChannel)
16+
public async Task HandleTeleport(SocketGuildChannel Channel)
1717
{
18+
var rxChannel = Channel;
1819
if (rxChannel.Id == Context.Channel.Id)
1920
{
2021
await Context.Message.ReplyAsync(
@@ -40,4 +41,4 @@ await Context.Channel.SendMessageAsync(
4041
await Context.Channel.SendMessageAsync(embed: new TxPortalEmbed(rxChannel, Context.Guild).Build());
4142
await helper.LogToLogChannelAsync(Context.Guild, Context.Channel.Id, rxChannel.Id);
4243
}
43-
}
44+
}

0 commit comments

Comments
 (0)