Skip to content

Commit 49c22b4

Browse files
committed
Fixed some null exceptions
1 parent 36c48d7 commit 49c22b4

6 files changed

+95
-73
lines changed

TS3AudioBot/Ts3Client.cs

+2-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
using TSLib;
2121
using TSLib.Commands;
2222
using TSLib.Full;
23-
using TSLib.Full.Book;
2423
using TSLib.Helper;
2524
using TSLib.Messages;
2625
using CmdE = System.Threading.Tasks.Task<System.E<TS3AudioBot.Localization.LocalStr>>;
@@ -47,7 +46,7 @@ public sealed class Ts3Client
4746
"?", "c(ꙩ_Ꙩ)ꜿ", "I'll be back", "Your advertisement could be here",
4847
"connection lost", "disconnected", "Requested by API.",
4948
"Robert'); DROP TABLE students;--", "It works!! No, wait...",
50-
"Notice me, senpai", ":wq", "Soon™"
49+
"Notice me, senpai", ":wq", "Soon™", "It's not a bug, it's a feature"
5150
};
5251

5352
private bool closed = false;
@@ -216,7 +215,7 @@ private void UpdateIndentityToSecurityLevel(int targetLevel)
216215
public Task KickClientFromChannel(params ClientId[] clientId) => ts3FullClient.KickClientFromChannel(clientId).UnwrapThrow();
217216

218217
public Task ChangeDescription(string description)
219-
=> ts3FullClient.ChangeDescription(description, ts3FullClient.ClientId).UnwrapThrow();
218+
=> ts3FullClient.ChangeDescription(description).UnwrapThrow();
220219

221220
public Task ChangeBadges(string badgesString)
222221
{

0 commit comments

Comments
 (0)