Browse Source

Update src/Discord.Net.WebSocket/Entities/Interaction/SocketBaseCommand/SocketApplicationCommand.cs

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>
pull/2099/head
Quin Lynch GitHub 3 years ago
parent
commit
aa902093c4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.WebSocket/Entities/Interaction/SocketBaseCommand/SocketApplicationCommand.cs

+ 1
- 1
src/Discord.Net.WebSocket/Entities/Interaction/SocketBaseCommand/SocketApplicationCommand.cs View File

@@ -49,7 +49,7 @@ namespace Discord.WebSocket
=> SnowflakeUtils.FromSnowflake(Id);

/// <summary>
/// Gets the guild this command resides in, if this command is a global command then it will return <see langword="null"/>
/// Gets the guild this command resides in; if this command is a global command then it will return <see langword="null"/>
/// </summary>
public SocketGuild Guild
=> GuildId.HasValue ? Discord.GetGuild(GuildId.Value) : null;


Loading…
Cancel
Save