internal new static SocketMessageCommandData Create(DiscordSocketClient client, Model model, ulong id, ulong?guildId) { var entity = new SocketMessageCommandData(client, model, guildId); entity.Update(model); return(entity); }
internal SocketMessageCommand(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 = SocketMessageCommandData.Create(client, dataModel, model.Id, guildId); }