internal new static SocketUserCommandData Create(DiscordSocketClient client, Model model, ulong id, ulong?guildId) { var entity = new SocketUserCommandData(client, model, guildId); entity.Update(model); return(entity); }
internal SocketUserCommand(DiscordSocketClient client, Model model, ISocketMessageChannel channel, SocketUser user) : base(client, model, channel, user) { var dataModel = model.Data.IsSpecified ? (DataModel)model.Data.Value : null; ulong?guildId = null; if (Channel is SocketGuildChannel guildChannel) { guildId = guildChannel.Guild.Id; } Data = SocketUserCommandData.Create(client, dataModel, model.Id, guildId); }