mirror of
https://github.com/uowuo/abaddon.git
synced 2026-08-15 05:19:58 +00:00
convert a bunch of .Username accesses to proper access
This commit is contained in:
1 parent
878616e2ef
commit
00dddf410e
9 files changed
+19
-18
No files matched your search
@@ -117,12 +117,13 @@ void Completer::CompleteMentions(const Glib::ustring &term) {
|
||||
if (id == me) continue;
|
||||
const auto author = discord.GetUser(id);
|
||||
if (!author.has_value()) continue;
|
||||
// todo improve the predicate here
|
||||
if (!StringContainsCaseless(author->Username, term)) continue;
|
||||
if (i++ > 15) break;
|
||||
|
||||
auto entry = CreateEntry(author->GetMention());
|
||||
|
||||
entry->SetText(author->Username + "#" + author->Discriminator);
|
||||
entry->SetText(author->GetUsername());
|
||||
|
||||
if (channel_id.IsValid()) {
|
||||
const auto chan = discord.GetChannel(channel_id);
|
||||
|
||||
Reference in new issue
Block a user