Skip to content

Commit

Permalink
変数名の変更
Browse files Browse the repository at this point in the history
  • Loading branch information
ca45382 committed Aug 9, 2021
1 parent 093c1c3 commit 6fc755e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DataModel/CommandEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public CommandEventArgs(SocketUserMessage socketUserMessage)
var splitContents = SocketUserMessage.Content.ZenToHan().Split(' ', StringSplitOptions.RemoveEmptyEntries);
Name = splitContents[0];
Arguments = splitContents.Length > 1 ? splitContents.Skip(1).ToList() : Array.Empty<string>();
Author = SocketUserMessage.Author as SocketGuildUser;
User = SocketUserMessage.Author as SocketGuildUser;
Channel = SocketUserMessage.Channel as SocketTextChannel;

PlayerData = DatabasePlayerDataController.LoadPlayerData(Channel.Guild.Id, SocketUserMessage.Author.Id);
Expand All @@ -43,7 +43,7 @@ public CommandEventArgs(SocketUserMessage socketUserMessage)
public SocketUserMessage SocketUserMessage { get; }
public string Name { get; }
public IReadOnlyList<string> Arguments { get; }
public SocketGuildUser Author { get; }
public SocketGuildUser User { get; }
public SocketTextChannel Channel { get; }
public SocketRole Role { get; }
public ClanData ClanData { get; }
Expand Down
2 changes: 1 addition & 1 deletion Script/ClanBattle/BattleCarryOver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public void UpdateCarryOverData()
public void DeleteCarryOverData()
{
const int defaultDeleteNumber = 1;
var playerData = DatabasePlayerDataController.LoadPlayerData(m_CommandEventArgs.Role, m_CommandEventArgs.Author.Id);
var playerData = DatabasePlayerDataController.LoadPlayerData(m_CommandEventArgs.Role, m_CommandEventArgs.User.Id);

try
{
Expand Down

0 comments on commit 6fc755e

Please sign in to comment.